package com.hoshiibuy.common.exception;

public class hoshiibuyException extends RuntimeException {
    public hoshiibuyException() {

        super();
    }

    public hoshiibuyException(String message) {

        super(message);
    }

    public hoshiibuyException(String message, Throwable cause) {

        super(message, cause);
    }

    /**
     * 错误
     */
    private CommonError error;

    public hoshiibuyException(CommonError error) {
        super(error.getMsg());
        this.error = error;
    }

    public hoshiibuyException(CommonError error, Throwable cause) {
        super(error.getMsg(), cause);
        this.error = error;
    }
}
